package com.pengweiwei.androidzygote.main.ui;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.putong35.common.baseactfrag.activity.BaseActivity;
import com.putong35.common.utils.AppUtil;
import com.pengweiwei.androidzygote.R;
import com.pengweiwei.androidzygote.databinding.ActivityAboutBinding;

public class AboutActivity extends BaseActivity {

    public static void start(Context context) {
        Intent starter = new Intent(context, AboutActivity.class);
        context.startActivity(starter);
    }

    ActivityAboutBinding activityAboutBinding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setTitle("关于我们");
        enableBackButton();
    }

    @Override
    public View createDataView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        activityAboutBinding = ActivityAboutBinding.inflate(getLayoutInflater());
        String appInfo = getString(R.string.app_name) + ":" + AppUtil.getVersionName(this);
        activityAboutBinding.setAppInfo(appInfo);
        return activityAboutBinding.getRoot();
    }


}
